﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addUser.aspx.cs" Inherits="admin_addUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/body.css" rel="stylesheet" type="text/css" />
    <link href="../css/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            text-align: left;
            width: 400px;
            margin-left: 50px;
            margin-top: 30px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        function openWin(u, w, h) {
            var l = (screen.width - w) / 2;
            var t = (screen.height - h) / 2;
            var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l;
            s += ', toolbar=no, scrollbars=no, menubar=no, location=no, resizable=no';
            open(u, 'oWin', s);
        } 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <table class="tab"  style="text-align: left">
            <tr>
                <td>
                    用户编号：
                </td>
                <td>
                    <asp:TextBox ID="tb_id" runat="server" ReadOnly=true></asp:TextBox><font color="red">*自动生成</font>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="tb_id" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    用户名：
                </td>
                <td>
                    <asp:TextBox ID="tb_name" runat="server"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="tb_name" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    电子邮件：
                </td>
                <td>
                    <asp:TextBox ID="tb_email" runat="server"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="tb_email" ErrorMessage="*" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="tb_email" Display="Dynamic" ErrorMessage="地址错误" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
         
            <tr>
                <td>
                    性别：</td>
                <td>
                    <asp:RadioButton ID="rbtn_man" runat="server" Checked="True" Text="男" 
                        GroupName="sex" />
&nbsp;
                    <asp:RadioButton ID="rbtn_woman" runat="server" Text="女" GroupName="sex" />
                </td>
            </tr>
         
            <tr>
                <td colspan="2">
                    <asp:Button ID="btn_ok" runat="server" Text="确定" OnClick="btn_ok_Click" Width="50px" />
                    &nbsp;
                    <asp:Button ID="btn_res" runat="server" OnClick="btn_res_Click" Text="重置" 
                        Width="50px" CausesValidation="False" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: left;">
                    说明：直接添加用户，金币值为：<font color="red">100</font>，密码为：<font color="red">888888</font></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
